package model.GsonMapping;

import java.util.UUID;

public class UpdatedResult 
{
	private String result;
	private UUID valueID;
	
	public UpdatedResult(){}
	
	public UpdatedResult(String updatedValue, UUID valueID)
	{
		setResult(updatedValue);
		setValueID(valueID);
	}
	
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public UUID getValueID() {
		return valueID;
	}
	public void setValueID(UUID valueID) {
		this.valueID = valueID;
	}
	
	@Override
	public boolean equals(Object obj) 
	{
		boolean equals = false;
		
		if(obj.getClass() == this.getClass())
			equals = (valueID.equals(((UpdatedResult)obj).getValueID()));
		
		return equals;
	}
}
